﻿<!DOCTYPE html>
<html lang="en">
    <head>
        <meta charset="utf-8" />
        <title>@Page.Title 西雅图净宗学会</title>
        <link href="~/Content/themes/base/jquery.ui.all.css" rel="stylesheet" type="text/css" />
        <link href="~/Content/Site.css" rel="stylesheet" type="text/css" />
        <link href="~/Content/top_nav.css" rel="stylesheet" type="text/css" >
        <link href="~/Content/cube_wire.css" rel="stylesheet" type="text/css" >
        <link href="~/Content/DocContent.css" rel="stylesheet" type="text/css" >
        <link href="~/Content/nivo-slider.css" rel="stylesheet" type="text/css" />
        <link href="~/favicon.ico" rel="shortcut icon" type="image/x-icon" />
        <script src="~/Scripts/jquery-1.7.1.min.js"></script>
        <script src="~/Scripts/jquery-ui-1.8.20.js"></script>
        <script src="~/Scripts/modernizr-2.5.3.js"></script>
        <!--<script src="<%= Url.Content("~/Scripts/jquery.nivo.slider.pack.js") %>" type="text/javascript"></script>-->
        <script src="~/Scripts/jquery.nivo.slider.pack.js"></script>
        <meta name="viewport" content="width=device-width" />
    </head>
    <body>
        <header>
            <div id="mainBodyContainer">
                 <div id="bodyWrapper">
                    <div class="headerContainer">
                        <div class="logoWrapper">
                           <div class="header">
                             <!--a class="logo" title="Happiness to life" href="~/"><img src="~/Images/logo2.png" alt="logo" /></a -->
                             <div class="logoWrapper"><a href="~/" class="logo" title="Happiness to life"></a></div> 
                           </div>
                       </div>
                        <div class="MainNavWrapper dashBorder">
                        <ul id="nav">
                          @{    
                              var dataSet = ParseNavigationMenu.NavigationMenu;
                              int i = 0;
                            // dataSet.ReadXmlSchema(Server.MapPath("~/App_Data/MenuItems.xsd")); 
                            // dataSet.ReadXml(Server.MapPath("~/App_Data/MenuItems.xml"));                         
                            foreach (System.Data.DataRow menuItem in dataSet.Tables[0].Rows)
                            {
                                string menuItemName = (string)menuItem["Name"];
                                string menuItemLink = (string)menuItem["Link"];
                                i++;
                                // var menuLevel1Lists = menus.Query("SELECT DISTINCT [MenuItemName], [MenuItemLink] FROM [MainPageLayout].[MainMenuItems] where [BelongedToMenuName]=@0 and [MenuLevelTypeName]=\'Level1\'  AND [CultureInfoName]=\'zh-tw\'", @menuItem.MenuItemName);
                                <li><a href="~/@menuItemLink">@menuItemName</a>
                                @if (dataSet.Tables[i] != null)
                                {
                                    <ul>
                                    @foreach (System.Data.DataRow subMenuItem in dataSet.Tables[i].Rows)
                                    {
                                        string subMenuName = (string)subMenuItem["Name"];
                                        string subMenuLink = (string)subMenuItem["Link"];
                                        <li><a href="~/@subMenuLink">@subMenuName</a></li>
                                    }
                                    </ul>
                                }
                                </li>
                             }
                         }
                       </ul>
                     </div>
                    </div>
                </div>
            </div>
        </header>
        <div id="body">
            @RenderSection("featured", required: false)
            <section class="content-wrapper main-content clear-fix">
                @RenderBody()
            </section>
        </div>
        <footer>
            <div class="content-wrapper">
                <div class="float-right">
                    <p>道場位址：701 1/2 S. King St, Seattle, WA.聯繫電話: (206)624-9378/(425)557-1037</p>
                    <p>道場每週開放4次:週六和週一為蓮友共修（10am-4pm)，周日和週三為圖書借閱和結緣時間(12pm-3:30pm).</p>
                    <p>願以此功德,莊嚴佛淨土,上報四重恩,下濟三途苦,若有見聞者,悉發菩提心,盡此一報身,同生極樂國！</p>

                </div>
            </div>
        </footer>
        @RenderSection("Scripts", required: false)
    </body>
</html>